#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define per(i, a, b) for (int i = (a); i >= (b); i--)
#define endl '\n'
const int N = 5e5 + 5;

int n, m;
int a[N], d[N], c[N];

int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  rep(i, 1, n) cin >> a[i];
  rep(i, 1, n) {
    c[i] = c[i - 1] + d[i];
    a[i] += c[i];
    if (a[i]) {
      int j = min(i + a[i], n);
      a[i] -= j - i;
      d[i + 1]++;
      d[j + 1]--;
    }
  }
  rep(i, 1, n) cout << a[i] << " \n"[i == n];
  return 0;
}